<%@ page import="bean.MemberDTO" %>
<%@ page import="bean.MemberVO" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
 <jsp:useBean id="login" class="bean.MemberVO" scope="page"></jsp:useBean>
 <jsp:setProperty property="*" name="login"/>
<%
	MemberDTO mdto = new MemberDTO();
    mdto.setVo(login);
        	
    
    	if(mdto.login()){
        	session.setAttribute("sessionMid", login.getM_id());
        	//pageContext.forward("index.jsp?side_login=./member/login.jsp");
        	%>
        	<script type="text/javascript">location.href = "index.jsp"; </script>
        	<%
        }
        else{
%>
	<script type="text/javascript">alert("로그인 정보가 올바르지 않습니다.");location.href = "index.jsp";</script>
<%
        	//pageContext.forward("index.jsp?side_login=./member/login.jsp");
        }	
%>
</body>
</html>